package com.dsbj.it.DingTalkBotStarter.service.impl;

import com.dsbj.it.DingTalkBotStarter.service.DemandService;
import com.dsbj.it.DingTalkBotStarter.service.MachinesService;
import com.dsbj.it.DingTalkBotStarter.service.SimImportService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@RequiredArgsConstructor
public class SimImportServiceImpl implements SimImportService {

    private final DemandService demandService;

    private final MachinesService machinesService;

    @Override
    @Transactional
    public void simImportBatch() {

        machinesService.saveMachines();

        demandService.saveDemand();
    }
}
